package com.scau.dao;

import java.util.List;

import com.scau.pojo.Homework;

public interface HomeworkDao {
	//根据seId获取作业
	public List<Homework> getHomeworkBySeId(int seId);
	//获取所有作业
	public List<Homework> queryAllHomework();
	//获取作业个数
	public int countBySeId(int id);
	//添加作业
	public int add(Homework homework);
	//删除一或多个作业
	public int delete(int id);
	//更新作业信息
	public int update(Homework homework);
	//作业名称是否已存在
	public int isNameExist(String hName,Integer seId);
}
